#include <iostream>
using namespace std;

class Base1{
public:
  int _b1;
};

class Base2{
public:
  int _b2;
};

class Derive : public Base1, public Base2{
public:
  int _d;
};

int main(){
  Derive d;
  Base1 *pb1 = &d;
  Base2 *pb2 = &d;
  Derive *pd = &d;

  cout << "pb1:" << pb1 << endl;
  cout << "pb2:" << pb2 << endl;
  cout << "pd:" << pd << endl;
}
